__author__ = 'guo'

from datetime import timedelta
from django.template import Library, defaultfilters
register = Library()


@register.filter(name='key')
def key(d, name):
    return d[name]